<template>
    <div id="head">
        <span class="span" @click="fanhui">&lt;</span> <span class="span1">{{dingbu[type]}}</span>
    </div>
</template>
<script>
export default {
    props:['type'],
    data(){
        return {
            dingbu:{
                "xinpin":"新品首发",
                "chaowan":"潮玩饰品",
                "youhui":"天天都有优惠券"
            }
        }
    },
        methods:{
        fanhui(){
            this.$router.back()
        }
    }
}
</script>
<style scoped>
    #head{
        width: 3.6rem;
        height: 0.4rem;
        margin: auto;
        line-height: 0.4rem;
        font-weight: 600;
        position: fixed;
        top: 0;
        background-color: #efefef;
        z-index: 10;
    }
    .span{
        width: 0.2rem;
        float: left;
        margin-left: 0.12rem;
    }
    .span1{
        width: 1.7rem;
        display: block;
        margin: auto;
        text-align: center;
    }
</style>